<style scoped lang="stylus">
.title-bar
  padding-top 60px
  line-height 128px
  background url("../assets/index/index_header_03.jpg")
  background-size cover
  .back
    width 16px
    height 29px
    background url("../assets/search/icon_back.png") no-repeat center
    background-size 16px 29px
</style>

<template lang="pug">
.title-bar.flex.white
  .back.pdl-30.pdr-16.pdv-20(@click="onBack")
  .fz-36.bold(@click="onBack") {{ title }}
  .flex-1
  .bar-right
    slot
</template>

<script>
export default {
  name: 'TitleBar',
  props: {
    title: {
      type: String,
      default: '',
      required: true
    }
  }
}
</script>
